﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EBookStore
{
    public abstract class User
    {

        #region Properties 

        protected long ID { get; set; }
        protected string FirstName { get; set; }
        protected string LastName { get; set; }

        #endregion


        #region Functions
        public abstract void CommentBook(Book book, string text);
       
        #endregion
    }

    public class Clerk : User
    {
        public override void CommentBook(Book book, string text)
        {
            book.Comments.Add(new BookComment());
        }
    }

    public class Customer:User
    {
        public override void CommentBook(Book book, string text)
        {
            book.Comments.Add(new BookComment());
        }
    }
}
